package com.example04.resource;

import com.example04.entity.Student;

import java.util.ArrayList;
import java.util.List;

public class DatabaseUtils {
    private static final List<Student> STUDENTS = create();
    private static List<Student> create() {
        List<Student> students = new ArrayList<>();
        students.add(new Student(1,"张三", Student.Sex.MALE,2020));
        students.add(new Student(2,"李四",Student.Sex.FEMALE,2020));
        students.add(new Student(3,"王五",Student.Sex.MALE,2021));
        students.add(new Student(4,"赵六",Student.Sex.FEMALE,2021));
        students.add(new Student(5,"刘七",Student.Sex.MALE,2022));
        students.add(new Student(6,"毕八",Student.Sex.FEMALE,2022));
        return students;
    }
    public static List<Student> listStudent() {
        return STUDENTS;
    }
}